package gov.kqqzyyy.monkey.clinicscreen.objects;

import lombok.Builder;
import lombok.Data;

/**
 * Created by Monkey on 2018/1/23.
 * 诊室医生
 */

@Data
@Builder
public class ClinicDoctor {

    private int SH;
    private String YSXM;//医生姓名
    private String CZHM;//出诊号码
    private String ZSMC;//诊室名称
    private String PIC;//科室名称
    private int SFZJ;//是否专家

    @Override
    public boolean equals(Object obj) {
        return obj instanceof ClinicDoctor && ((ClinicDoctor) obj).getCZHM().equals(this.getCZHM());
    }

    @Override
    public int hashCode() {
        return Integer.parseInt(getSH() + getCZHM());
    }
}
